package com.xvheng.module.backendApi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xvheng.common.annotation.Excel;
import com.xvheng.common.core.domain.BaseEntity;

/**
 * 会员卡券对象 tm_user_coupon
 * 
 * @author xvheng
 * @date 2025-01-03
 */
public class UserCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 券类型，C优惠券；P预存卡；T集次卡 */
    @Excel(name = "券类型，C优惠券；P预存卡；T集次卡")
    private String type;

    /** 效果图 */
    @Excel(name = "效果图")
    private String image;

    /** 券组id */
    @Excel(name = "券组id")
    private String groupId;

    /** 券id */
    @Excel(name = "券id")
    private String couponId;

    /** 用户手机号码 */
    @Excel(name = "用户手机号码")
    private String mobile;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 商户id */
    @Excel(name = "商户id")
    private String merchantId;

    /** 使用店铺id */
    @Excel(name = "使用店铺id")
    private String storeId;

    /** 面额 */
    @Excel(name = "面额")
    private BigDecimal amount;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal receiveMoney;

    /** 状态：A：未使用；B：已使用；C：已过期; D：已删除；E：未领取 */
    @Excel(name = "状态：A：未使用；B：已使用；C：已过期; D：已删除；E：未领取")
    private String status;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usedTime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "办卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date openTime;

    /** 最后操作人 */
    @Excel(name = "最后操作人")
    private String operator;

    /** 导入uuid */
    @Excel(name = "导入uuid")
    private String uuid;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal giveMoney;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setGroupId(String groupId) 
    {
        this.groupId = groupId;
    }

    public String getGroupId() 
    {
        return groupId;
    }
    public void setCouponId(String couponId) 
    {
        this.couponId = couponId;
    }

    public String getCouponId() 
    {
        return couponId;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }
    public void setStoreId(String storeId) 
    {
        this.storeId = storeId;
    }

    public String getStoreId() 
    {
        return storeId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUsedTime(Date usedTime) 
    {
        this.usedTime = usedTime;
    }

    public Date getUsedTime() 
    {
        return usedTime;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }
    public void setOpenTime(Date openTime)
    {
        this.openTime = openTime;
    }

    public Date getOpenTime()
    {
        return openTime;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setReceiveMoney(BigDecimal receiveMoney)
    {
        this.receiveMoney = receiveMoney;
    }

    public BigDecimal getReceiveMoney()
    {
        return receiveMoney;
    }

    public BigDecimal getGiveMoney() {
        return giveMoney;
    }

    public void setGiveMoney(BigDecimal giveMoney) {
        this.giveMoney = giveMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("type", getType())
            .append("image", getImage())
            .append("groupId", getGroupId())
            .append("couponId", getCouponId())
            .append("mobile", getMobile())
            .append("userId", getUserId())
            .append("merchantId", getMerchantId())
            .append("storeId", getStoreId())
            .append("amount", getAmount())
            .append("balance", getBalance())
            .append("status", getStatus())
            .append("usedTime", getUsedTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("expireTime", getExpireTime())
            .append("openTime", getOpenTime())
            .append("operator", getOperator())
            .append("uuid", getUuid())
            .append("orderId", getOrderId())
                .append("receiveMoney", getReceiveMoney())
                .append("giveMoney", getGiveMoney())
                .append("name", getName())
            .toString();
    }
}
